# -*- coding: utf-8 -*-
# owner: shenyi
# file: src/core/__init__.py
from .app import setup_app, ApplicationContext
from .api_reponse import ApiResponse
from .middleware import register_middlewares

# 导出全局实例，方便直接使用
from .app import get_config as config, get_logger as logger, get_credentials as credentials

__all__ = [
    'register_middlewares',
    'ApiResponse',
    'ApplicationContext',
    'setup_app',
    'config',      # ✅ 公共配置对象
    'logger',      # ✅ 公共日志器
    'credentials', # ✅ 公共凭据管理器
]
